setMenuVisibility

open fun setMenuVisibility(menuVisible: Boolean)(source)

Set a hint for whether this fragment's menu should be visible. This is useful if you know that a fragment has been placed in your view hierarchy so that the user can not currently seen it, so any menu items it has should also not be shown.

Parameters

menuVisible

The default is true, meaning the fragment's menu will be shown as usual. If false, the user will not see the menu.